package com.minimalist.lindi.service;

import com.minimalist.common.entity.lindi.po.LindiSubsidyApplicationTownItem;
import com.minimalist.common.entity.lindi.vo.subsidyapplication.LindiSubsidyApplicationTownItemVO;
import com.mybatisflex.core.service.IService;

import java.util.List;

/**
 * 林地指标交易平台_补贴申请镇街明细 服务层。
 *
 * @author 11987
 * @since 2025-01-27
 */
public interface LindiSubsidyApplicationTownItemService extends IService<LindiSubsidyApplicationTownItem> {

    /**
     * 根据补贴申请ID查询镇街明细列表
     *
     * @param subsidyApplicationId 补贴申请ID
     * @return 镇街明细列表
     */
    List<LindiSubsidyApplicationTownItemVO> getSubsidyApplicationTownItemListBySubsidyApplicationId(Long subsidyApplicationId);

    /**
     * 批量添加镇街明细
     *
     * @param townItemList 镇街明细列表
     */
    void batchAddSubsidyApplicationTownItem(List<LindiSubsidyApplicationTownItemVO> townItemList);

    /**
     * 根据补贴申请ID删除镇街明细
     *
     * @param subsidyApplicationId 补贴申请ID
     */
    void deleteSubsidyApplicationTownItemBySubsidyApplicationId(Long subsidyApplicationId);
}